@mixin box_sizing {
	-moz-box-sizing: border-box; 
	-webkit-box-sizing: border-box; 
	box-sizing: border-box;
}

@mixin box_shadow {
	-webkit-box-shadow: 4px 4px 3px rgba(150,150,150,0.6);
	-moz-box-shadow: 4px 4px 3px rgba(150,150,150,0.6);
	box-shadow: 4px 4px 3px rgba(150,150,150,0.6);
}

body {
	margin: 0;
	padding: 0;
	background: #EEEEEE;
	background-image: image-url('bg.png');
	font-family: Arial, sans-serif;
}

div#homepage-top-container {
	margin-left: auto;
	margin-right: auto;
	position: relative;
	width: 1040px;
	height: 675px;
	color: white;
	div#top-filling {
		width: 1040px;
		height: 531px - 54px;
		position: absolute;
		z-index: 2;
		left: 50%;
		top: 184px;
		margin-left: -520px;
		@include box_shadow;
	}
}

/*************************/
div#top-container {
	margin-left: auto;
	margin-right: auto;
	position: relative;
	width: 1040px;
	height: 130px;
	color: white;
	div#top-filling {
		width: 1040px;
		height: 59px;
		position: absolute;
		left: 50%;
		top: 130px;
		margin-left: -520px;
		background-color: white;
	}
}

div#en {
	position: absolute;
	width: 34px;
	height: 52px;
	right: -32px;
	top: 220px;
	background-image: image-url('en.png');
	z-index: 1;
}

div#cz {
  position: absolute;
  width: 34px;
  height: 52px;
  right: -32px;
  top: 290px;
	background-image: image-url('cz.png');
  z-index: 1;
}

div#en a,
div#cz a {
	display: block;
	height: 100%;
}

img#logo {
	position: absolute;
	left: 40px;
	top: 30px;
	z-index: 10;
}

header {
	background-image: image-url('bg_top.jpg');
	background-position: top center;
	background-repeat: no-repeat;
	background-color: #1f1f1f;
	height: 189px;
	width: 100%;
	nav a {
		font-size: 14px;
		color: white;
		text-decoration: none;
		&:hover {
			color: #0AB1F8;
		}
		&.selected {
			color: #0AB1F8;
		}
		&.selected:hover {
			color: white;
		}
	}
}

header nav ul {
	float: right;
	margin-right: 30px;
	list-style: none;	
	li {
		float: left;
		margin: 40px 0px 0 0;
		border-left: 1px solid #E0E0E0;
		padding: 40px 16px 20px 16px;
	}
}

header nav ul > li:first-child {
	border: none;
}

div#main-pic {
	width: 1040px;
	height: 531px;
	position: absolute;
	z-index: 6;
	left: 50%;
	top: 130px;
	margin-left: -519px;
	background-image: image-url('bg.png');
}

div#page-content {
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 6;		
	width: 1040px;
	margin-top: -5px; // kvuli posunu stinu
	padding: 50px 40px 30px 40px;
	background-color: white;
	color: #777;
	font-size: 14px;
	@include box_shadow;
	@include box_sizing;
	h1 {
		font-family: "Titillium Web", Arial, serif;
		font-weight: 600;
		font-size: 36px;
		color: #009DDF;
		margin-top: 0;
		margin-bottom: 20px;
		text-transform: uppercase;
	}
}

.flex-slider {
	ul.slides li img {
	}
}

div.slide-caption {
	margin-top: -250px;
	margin-left: 40px;
	position: absolute;
	font-family: "Titillium Web", Arial, serif;
	color: white;
	h1 {
		font-weight: 600;
		font-size: 48px;
		margin: 0;
		padding: 0;
		span {
			padding: 0 15px 0 15px;
			background: rgba(0,157,233,0.7);
		}
	}
	p {			
		margin: 0;
		font-weight: 200;
		font-size: 44px;
		padding: 0 15px 0 15px;
		background: rgba(0,157,233,0.7);
	}
}

.flex-control-paging li a:hover { background: #333; background: rgba(0,157,233,0.5); }

.flex-control-paging li a.flex-active	 { background: rgba(0,157,233,0.8); }

.flex-direction-nav .flex-prev {
	display: block;
	position: absolute;
	z-index: 1;
	right: 100px;
	bottom: 50px;
	height: 42px;
	width: 42px;
	background-image: image-url('arrow_left.png');
}

.flex-direction-nav .flex-next {
	display: block;
	position: absolute;
	z-index: 1;
	right: 50px;
	bottom: 50px;
	height: 42px;
	width: 42px;
	background-image: image-url('arrow_right.png');
}
/*************************/
div#homepage-content {
	margin-left: auto;
	margin-right: auto;
	width: 1040px;
	height: 320px;
	margin-top: 490px;
	 section {
		font-size: 14px;
		color: #777;
		h1 {
			margin-top: 0px;
			font-size: 20px;
			color: #009DDF;
			min-height: 26px;
			&.f1 {
				background: image-url('ico1.png') right top no-repeat;
			}
			&.f2 {
				background: image-url('ico2.png') right top no-repeat;
			}
			&.f3 {
				background: image-url('ico3.png') right top no-repeat;
			}
			&.s1 {
				background: image-url('ico4.png') right top no-repeat;
			}
			&.s2 {
				background: image-url('ico5.png') right top no-repeat;
			}
			&.s3 {
				background: image-url('ico6.png') right top no-repeat;
			}
		}		
	}

	section.first-row {
		float: left;
		width: 244px;
		margin: 20px 15px 0px 25px;
	}

	section.first-row-last {
		float: right;
		margin: 20px 25px 0 0;
		img {
			display: block;
			margin-bottom: 30px;
		}
	}

	section.second-row {
		float: left;
		width: 244px;
		margin: 30px 15px 0px 25px;
	}
}

table {
	border-spacing: 0;
	margin-bottom: 20px;
	tr {
		background-color: #E6E6E6;
		&.even {
			background-color: #7FCEEF;
		}
		td {
			border-left: 14px solid white;
			vertical-align: top;
			padding: 8px 14px;
		}
		> td:first-child {
			border: none;
		}
	}
}

.clear-left {
	clear: left;	
}

footer {
  position: relative;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	margin-bottom: 30px;
	width: 1040px;
  height: 166px;
	background-image: image-url('bg_footer.jpg');;
	color: white;
  div {
    position: absolute;
    bottom: 20px;
    margin-left: 30px;
  	font-family: "Titillium Web", Arial, serif;
		font-weight: 600;
		font-size: 26px;
  }
  img {
  	position: absolute;
  	right: 40px;
  	bottom: 40px;
  	border: none;
  }
}

label {
	display: block;
	margin-top: 20px;
	margin-bottom: 5px;
}

input,
textarea {
	@include box_sizing;
	display: inline-block;
	width: 100%;
	font-size: 14px;
	color: #777;
	line-height: 18px;
	padding: 6px;
	background-color: #FFFFFF;
	border: 1px solid #CCCCCC;
	border-radius: 3px 3px 3px 3px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
	-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
	-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
	transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
	&:focus {
		border-color: #009DDF;
		box-shadow: 0 0 8px rgba(82, 168, 236, 0.3);
		-webkit-box-shadow: 0 0 8px rgba(82, 168, 236, 0.3);
		-moz-box-shadow: 0 0 8px rgba(82, 168, 236, 0.3);
	}
	&.error:focus {
		border-color: #009DDF;
		box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
		-webkit-box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
		-moz-box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
	}
}

input[type="submit"] {
	display: block;
	width: auto;
	margin-top: 25px;
	background-color: #0492D0;
	color: white;
	font-size: 16px;
	padding: 9px 14px;
	border: 1px solid #009DDF;
	border-radius: 5px 5px 5px 5px;
	cursor: pointer;
}

textarea {
	height: 200px;
}

label.required:after {
	content: ' *';
	color: #F17463;
}

div.flash-notice,
div.flash-alert,
div.jquery_form_error_message {
  border-radius: 4px 4px 4px 4px;
  margin-bottom: 20px;
  padding: 8px 35px 8px 14px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	@include box_sizing;
}

div.flash-alert,
div.jquery_form_error_message {
  background-color: #F2DEDE;
  border-color: #EED3D7;
  color: #B94A48;
}

div.flash-notice {
  background-color: #DFF0D8;
  border-color: #D6E9C6;
  color: #468847;
}

span.jquery_form_error_message {
  display: block;
  margin-top: 3px;
  color: #B94A48;
}